\documentclass[12,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage[frenchb]{babel}
\usepackage{listings}
\usepackage{color}
\usepackage{geometry}
\geometry{hscale=0.85,vscale=0.85,centering}
\usepackage[colorlinks=true]{hyperref}
\hypersetup{urlcolor=blue,linkcolor=black,citecolor=black,colorlinks=true} 

\makeatletter
\def\clap#1{\hbox to 0pt{\hss #1\hss}}%
\def\ligne#1{%
\hbox to \hsize{%
\vbox{\centering #1}}}%
\def\haut#1#2#3{%
\hbox to \hsize{%
\rlap{\vtop{\raggedright #1}}%
\hss
\clap{\vtop{\centering #2}}%
\hss
\llap{\vtop{\raggedleft #3}}}}%
\def\bas#1#2#3{%
\hbox to \hsize{%
\rlap{\vbox{\raggedright #1}}%
\hss
\clap{\vbox{\centering #2}}%
\hss
\llap{\vbox{\raggedleft #3}}}}%
\def\maketitle{%
\thispagestyle{empty}\vbox to \vsize{%
\haut{}{\@blurb}{}
\vfill
\vspace{1cm}
\begin{flushleft}
\usefont{OT1}{ptm}{m}{n}
\huge \@title
\end{flushleft}
\par
\hrule height 4pt
\par
\begin{flushright}
\usefont{OT1}{phv}{m}{n}
\Large \@author
\par
\end{flushright}
\vspace{1cm}
\vfill
\vfill
\bas{}{\@location}{}
}%
\cleardoublepage
}
\def\author#1{\def\@author{#1}}
\def\title#1{\def\@title{#1}}
\def\location#1{\def\@location{#1}}
\def\blurb#1{\def\@blurb{#1}}
\author{}
\title{}
\location{Master 2 ALMA\\
      	  Annee 2012-2013}\blurb{}
\makeatother
\title{Middleware - Utilisation de l'API RMI}
\author{Matthieu ALLON - Nicolas RAULT}
\location{Master 2 ALMA - Annee 2012-2013\\
	  Professeur Mostefaoui}
\blurb{%
\includegraphics[width=0.2\linewidth]{mainTexpictures/unNantes.jpg}
  \\Faculte des Sciences et techniques
}% 

\begin{document}
\maketitle
\newpage
\cleardoublepage
\tableofcontents
\cleardoublepage

\cleardoublepage

\lstset{frame=single,numbers=left}
\input{diagramme_de_classe.tex}
\cleardoublepage
\input{utilisation.tex}
\cleardoublepage
\input{gestionServeur.tex}
\end{document}
